<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAppUserBanksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('app_user_banks', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id')->comment('用户ID');
            $table->string('name')->default('')->comment('用户名');
            $table->string('bank_card')->default('')->comment('银行卡');
            $table->string('bank_name')->default('')->comment('开户银行');
            $table->string('bank_address')->default('')->comment('地址');
            $table->string('mobile')->default('')->comment('手机号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('app_user_banks');
    }
}
